#include <fhepython/PyVarDesc.h>
#include <fhepython/PyVar.h>

namespace fhe
{
  namespace python
  {
    PyVarDesc::PyVarDesc( const std::string& name, boost::python::object get, boost::python::object set )
      : name_( name )
      , get_( get )
      , set_( set )
    {
    }
    
    std::string PyVarDesc::name() const
    {
      return name_;
    }
    
    IVar::Ptr PyVarDesc::build( Node* node )
    {
      return IVar::Ptr( new PyVar( name_, node, get_, set_ ) );
    }
  }
}
